<template>
  子组件A
  <button @click="btnClick">子组件A</button>
</template>

<script>
import eventBus from './eventBus'
export default {
  methods: {
    btnClick() {
      eventBus.emit('foo', 1)
      console.log('子组件A')
      eventBus.emit('get', 1)
    },
  },
}
</script>

<style scoped></style>
